package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_applog
 */
@TableName(value ="inte_applog")
public class InteApplog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String appname;

    /**
     * 
     */
    private Object appstate;

    /**
     * 
     */
    private String optime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getAppname() {
        return appname;
    }

    /**
     * 
     */
    public void setAppname(String appname) {
        this.appname = appname;
    }

    /**
     * 
     */
    public Object getAppstate() {
        return appstate;
    }

    /**
     * 
     */
    public void setAppstate(Object appstate) {
        this.appstate = appstate;
    }

    /**
     * 
     */
    public String getOptime() {
        return optime;
    }

    /**
     * 
     */
    public void setOptime(String optime) {
        this.optime = optime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteApplog other = (InteApplog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAppname() == null ? other.getAppname() == null : this.getAppname().equals(other.getAppname()))
            && (this.getAppstate() == null ? other.getAppstate() == null : this.getAppstate().equals(other.getAppstate()))
            && (this.getOptime() == null ? other.getOptime() == null : this.getOptime().equals(other.getOptime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAppname() == null) ? 0 : getAppname().hashCode());
        result = prime * result + ((getAppstate() == null) ? 0 : getAppstate().hashCode());
        result = prime * result + ((getOptime() == null) ? 0 : getOptime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", appname=").append(appname);
        sb.append(", appstate=").append(appstate);
        sb.append(", optime=").append(optime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}